package com.linrui.sys.service.impl;

import com.linrui.sys.domain.Dictionary;
import com.linrui.sys.domain.Dictionaryitem;
import com.linrui.sys.mapper.DictionaryitemMapper;
import com.linrui.sys.service.IDictionaryitemService;
import com.linrui.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author linrui
 * @since 2022-10-22
 */
@Service
public class DictionaryitemServiceImpl extends BaseServiceImpl<Dictionaryitem> implements IDictionaryitemService {
    @Autowired
    private DictionaryitemMapper dictionaryitemMapper;
    @Override
    public List<Dictionaryitem> getTree() {
        return dictionaryitemMapper.getTree();
    }
    @Override
    @Transactional
    public void deleteBydictionary(Long id){
        dictionaryitemMapper.deleteBydictionary(id);
    }
}
